package org.adorsys.aderp.cash.xchange;

import java.util.Date;

import javax.annotation.Resource;

import org.adorsys.aderp.cash.domain.CashReceiptAuditRecord;
import org.adorsys.aderp.cash.repository.CashReceiptAuditRecordRepository;
import org.adorsys.aderp.jpa.api.xchange.AbstractXchangeAuditRecordService;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.stereotype.Service;

@Service
public class CashReceiptXChangeAuditRecordService extends
		AbstractXchangeAuditRecordService<CashReceiptAuditRecord> {
	
	@Resource
	private CashReceiptAuditRecordRepository cashReceiptAuditRecordRepository;
	@Override
	public Page<CashReceiptAuditRecord> findByModifOnGreaterThan(Date modifOn,
			Pageable pageable) {
		Page<CashReceiptAuditRecord> found = cashReceiptAuditRecordRepository.findByModifOnGreaterThan(modifOn, pageable);
		return found;
	}

}
